package com.huan.quartz.repository;

import com.huan.quartz.domain.QuartzJobCfg;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * quartz job 配置 repository
 *
 * @author huan.fu
 * @date 2018/9/10 - 14:59
 */
public interface QuartzJobCfgRepository extends JpaRepository<QuartzJobCfg, Long> {
	/**
	 * 根据任务状态获取任务
	 *
	 * @param jobStatus
	 * @return
	 */
	List<QuartzJobCfg> findByJobStatus(String jobStatus);
}
